const mongoose = require('mongoose');
const expenseSchema = new mongoose.Schema({
    expense_id: {
        type: String,
        unique: true,
        required: true
    },
    member_id: {
        type: String,
        required: true
    },
    detail: {
        type: String
    },
    deta: {
        type: Date,
        required: true,
        default: Date.now()
    },
    employee_id: {
        type: String,
        unique: true,
        required: true
    },
    discont : {
        type: Number,
        required: true
    },
    yingshou : {
        type: Number,
        required: true
    },
    shishou: {
        type: Number,
        required: true
    }
})
module.exports = mongoose.model('cashier', expenseSchema);